package com.bdqn.service.imp;

import com.bdqn.bean.course.CourseDirection;
import com.bdqn.bean.course.CourseType;
import com.bdqn.dao.ICourseDirectionDao;
import com.bdqn.dao.ICourseTypeDao;
import com.bdqn.service.ICourseDirectionService;
import com.bdqn.service.ICourseTypeService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 忍
 * @title: ICourseDirectionServiceImp
 * @projectName Teaching
 * @description: TODO
 * @date 2019/5/2322:04
 */
@Service
public class CourseDirectionServiceImp implements ICourseDirectionService {
    @Qualifier("ICourseDirectionDao")
    @Autowired
    ICourseDirectionDao courseDirectionDao;
    /**
     * @param id
     * @return java.util.List<com.bdqn.bean.course.CourseType>
     * @throws
     * @description: 根据课程方向 查找下面所有的类型及课程
     * @author Mr.Zhou
     * @date 2019/5/23 22:00
     */
    @Override
    public List<CourseDirection> getCourseDirectionById(int id) {

        return courseDirectionDao.getDirectionById(id);
    }
}